package me.xiaoyan.android.tuition.activity;

import me.xiaoyan.android.tuition.R;
import me.xiaoyan.android.tuition.activity.core.Main;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

public class Splash extends Activity {
	private final int SPLASH_DISPLAY_TIMES = 1000; // 延迟三秒

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activiti_splash);

		new Handler().postDelayed(new Runnable() {
			@Override
			public void run() {
				Intent i = new Intent(Splash.this, Main.class);
				Splash.this.startActivity(i);
				Splash.this.finish(); 
			}
		}, SPLASH_DISPLAY_TIMES);
	}
	
	
	@Override
	public void onBackPressed() {
		return;
	}
}
